<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>CIAI: Référence du fichier reseau/envoi.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">CIAI
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Généré par Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Variables&#160;globale</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Énumérations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Valeurs énumérées</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_128705ec26caf7b0a10426a25d7cd051.html">reseau</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Fonctions</a>  </div>
  <div class="headertitle">
<div class="title">Référence du fichier envoi.c</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;unistd.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;sys/socket.h&gt;</code><br/>
<code>#include &lt;netinet/in.h&gt;</code><br/>
<code>#include &lt;netdb.h&gt;</code><br/>
<code>#include &lt;mqueue.h&gt;</code><br/>
<code>#include &lt;pthread.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="envoi_8h_source.html">envoi.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="messqueue_8h_source.html">../interface/messqueue.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="traducteur__message_8h_source.html">../messages/traducteur_message.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="variablesglobales_8h_source.html">../interface/variablesglobales.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Graphe des dépendances par inclusion de envoi.c:</div>
<div class="dyncontent">
<div class="center"><img src="envoi_8c__incl.png" border="0" usemap="#reseau_2envoi_8c" alt=""/></div>
<map name="reseau_2envoi_8c" id="reseau_2envoi_8c">
<area shape="rect" id="node21" href="envoi_8h.html" title="envoi.h" alt="" coords="861,91,923,119"/><area shape="rect" id="node23" href="messqueue_8h.html" title="../interface/messqueue.h" alt="" coords="865,177,1025,205"/><area shape="rect" id="node26" href="traducteur__message_8h.html" title="../messages/traducteur\l_message.h" alt="" coords="997,83,1147,127"/><area shape="rect" id="node31" href="variablesglobales_8h.html" title="../interface/variablesglobales.h" alt="" coords="1171,91,1363,119"/></map>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Fonctions</h2></td></tr>
<tr class="memitem:a11d5b87d56edc94eae8a4d95d38271fe"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="envoi_8c.html#a11d5b87d56edc94eae8a4d95d38271fe">envoi_linux</a> (void *parameter)</td></tr>
<tr class="memitem:af53be4eaba58d47ceebb3d3dc3aeb721"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="envoi_8c.html#af53be4eaba58d47ceebb3d3dc3aeb721">envoyer</a> (<a class="el" href="structmessage__t.html">message_t</a> message, int sockfd)</td></tr>
</table>
<a name="details" id="details"></a><h2>Description détaillée</h2>
<div class="textblock"><dl class="section author"><dt>Auteur</dt><dd>H4201 </dd></dl>
</div><h2>Documentation des fonctions</h2>
<a class="anchor" id="a11d5b87d56edc94eae8a4d95d38271fe"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* envoi_linux </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>parameter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Fonction qui sert de point d'entrée au thread "Envoi Linux" </p>
<dl class="params"><dt>Paramètres</dt><dd>
  <table class="params">
    <tr><td class="paramname">parameter</td><td>inutilisé ici </td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="envoi_8c_a11d5b87d56edc94eae8a4d95d38271fe_cgraph.png" border="0" usemap="#envoi_8c_a11d5b87d56edc94eae8a4d95d38271fe_cgraph" alt=""/></div>
<map name="envoi_8c_a11d5b87d56edc94eae8a4d95d38271fe_cgraph" id="envoi_8c_a11d5b87d56edc94eae8a4d95d38271fe_cgraph">
<area shape="rect" id="node3" href="envoi_8c.html#af53be4eaba58d47ceebb3d3dc3aeb721" title="envoyer" alt="" coords="139,5,205,33"/><area shape="rect" id="node5" href="traducteur__message_8c.html#a49cdda73eb2d7f1ce68a4f119834e7e0" title="serialiser_message" alt="" coords="253,5,384,33"/><area shape="rect" id="node7" href="traducteur__message_8c.html#a5d76d9bb0261966360a63a1eb267923b" title="nb_params_message" alt="" coords="433,5,575,33"/></map>
</div>
</p>

<p><div class="dynheader">
Voici le graphe des appelants de cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="envoi_8c_a11d5b87d56edc94eae8a4d95d38271fe_icgraph.png" border="0" usemap="#envoi_8c_a11d5b87d56edc94eae8a4d95d38271fe_icgraph" alt=""/></div>
<map name="envoi_8c_a11d5b87d56edc94eae8a4d95d38271fe_icgraph" id="envoi_8c_a11d5b87d56edc94eae8a4d95d38271fe_icgraph">
<area shape="rect" id="node3" href="mere_8h.html#aa1f9e596f42da073eb45d24686f43ef9" title="lancer_thread_envoi" alt="" coords="140,5,276,33"/><area shape="rect" id="node5" href="reception__linux_8h.html#a59373e9a9845cc0fd224520496bb1d67" title="initialiser_application" alt="" coords="325,5,467,33"/><area shape="rect" id="node7" href="reception__linux_8h.html#a42466b8fdf4ecd00121528fd9ee540a1" title="reception_linux" alt="" coords="516,5,623,33"/><area shape="rect" id="node9" href="mere_8h.html#a5e12a3b6e744060d0371be58ecb80dac" title="mere" alt="" coords="672,5,723,33"/><area shape="rect" id="node11" href="main_8h.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="771,5,821,33"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="af53be4eaba58d47ceebb3d3dc3aeb721"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void envoyer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structmessage__t.html">message_t</a>&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>sockfd</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Ecrit un <a class="el" href="structmessage__t.html">message_t</a> sur le socket passé en paramètre </p>
<dl class="params"><dt>Paramètres</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">message</td><td>Le message à envoyer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">sockfd</td><td>Le descripteur du socket sur lequel écrire </td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="envoi_8c_af53be4eaba58d47ceebb3d3dc3aeb721_cgraph.png" border="0" usemap="#envoi_8c_af53be4eaba58d47ceebb3d3dc3aeb721_cgraph" alt=""/></div>
<map name="envoi_8c_af53be4eaba58d47ceebb3d3dc3aeb721_cgraph" id="envoi_8c_af53be4eaba58d47ceebb3d3dc3aeb721_cgraph">
<area shape="rect" id="node3" href="traducteur__message_8c.html#a49cdda73eb2d7f1ce68a4f119834e7e0" title="serialiser_message" alt="" coords="120,5,251,33"/><area shape="rect" id="node5" href="traducteur__message_8c.html#a5d76d9bb0261966360a63a1eb267923b" title="nb_params_message" alt="" coords="300,5,441,33"/></map>
</div>
</p>

<p><div class="dynheader">
Voici le graphe des appelants de cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="envoi_8c_af53be4eaba58d47ceebb3d3dc3aeb721_icgraph.png" border="0" usemap="#envoi_8c_af53be4eaba58d47ceebb3d3dc3aeb721_icgraph" alt=""/></div>
<map name="envoi_8c_af53be4eaba58d47ceebb3d3dc3aeb721_icgraph" id="envoi_8c_af53be4eaba58d47ceebb3d3dc3aeb721_icgraph">
<area shape="rect" id="node3" href="envoi_8h.html#a11d5b87d56edc94eae8a4d95d38271fe" title="envoi_linux" alt="" coords="120,5,205,33"/><area shape="rect" id="node5" href="mere_8h.html#aa1f9e596f42da073eb45d24686f43ef9" title="lancer_thread_envoi" alt="" coords="255,5,391,33"/><area shape="rect" id="node7" href="reception__linux_8h.html#a59373e9a9845cc0fd224520496bb1d67" title="initialiser_application" alt="" coords="440,5,581,33"/><area shape="rect" id="node9" href="reception__linux_8h.html#a42466b8fdf4ecd00121528fd9ee540a1" title="reception_linux" alt="" coords="631,5,737,33"/><area shape="rect" id="node11" href="mere_8h.html#a5e12a3b6e744060d0371be58ecb80dac" title="mere" alt="" coords="787,5,837,33"/><area shape="rect" id="node13" href="main_8h.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="885,5,936,33"/></map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Généré le Lundi Décembre 17 2012 02:23:17 pour CIAI par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>
